import { vLoading } from './src/directive'
import type { App, Directive } from 'vue'
import { loading } from './src/service'

export const VtLoading = {
  install(app: App) {
    app.directive('loading', vLoading as Directive)
    app.config.globalProperties.$loading = loading
  },
  directive: vLoading,
  service: loading
}
